if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${OSQP_ALGEBRA_BACKEND})
  message(FATAL_ERROR "Algebra target directory does not exist:" ${OSQP_ALGEBRA_BACKEND})
endif()

set(OSQP_ALGEBRA_ROOT ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/${OSQP_ALGEBRA_BACKEND})
